import { IsNotEmpty } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';

export class AuthDto {
  @IsNotEmpty({ message: 'code不能为空' })
  @ApiPropertyOptional({
    description: '微信授权code',
    type: String,
  })
  code: string;
}
